Repository navigation
[bugfix] desktop: grant the renderer permissions the shell controls use - #458
Zhangbo-cn wants to merge 15 commits into
Conversation
wangtiance
left a comment
There was a problem hiding this comment.
已审阅 7c9f562 的权限处理、origin 校验、测试及冒烟检查变更。四项权限都经同一 allow list 与 ownedURL 校验,空值和非法 URL 会被拒绝;没有发现这些变更把权限直接开放给外部 origin 的问题。当前 head 的 14 项 GitHub 检查均成功。本轮为静态审阅,未在本机运行 Electron 或安装包。
有两点建议在合并前补齐:
- 明确记录 clipboard-read 的实际授权范围。它用于修复无用户激活的 writeText,但授权名称也涉及剪贴板读取;当前测试只证明写入成功,没有界定同 origin 下 readText 的行为。建议在真实 Electron 中增加 readText 探针,并在安全说明里准确记录读取是否也被允许,避免把策略描述成只有写入能力。
- GitHub 当前报告本分支存在合并冲突。同步 main 后应重跑新提交的检查,保留两种用户激活方式的剪贴板断言,并补 macOS/Windows 安装包结果及全屏进入/退出验证。现有 Windows 4/5 冒烟通过和独立权限探针不能替代同步后的跨平台安装包验收。
结论:修复路径有针对性,但当前证据还不足以作完整安装包验收或合并批准。
## summary - Replace the deny-all renderer permission handler with an explicit allow list limited to `opendirector://app`: the two clipboard names `navigator.clipboard.writeText` can request and the two fullscreen names `requestFullscreen` uses. - Grant by activation path, not by intent: a scripted write asks for `clipboard-read`, while the same write from a click asks for `clipboard-sanitized-write`, so a single name passes a scripted check and still leaves every copy button failing with `NotAllowedError`. - Scope grants by `details.requestingUrl` and the check handler's origin, and treat an empty or opaque origin as a denial instead of letting `new URL` throw. - Cover the shell policy in the installed smoke run: write from the renderer with and without user activation, then compare the system clipboard from the main process, polling because the renderer promise settles before the system clipboard holds the value. ## validation - Measured on Windows with Electron 45.3.3 against the real `opendirector://app` origin: the deny-all handler rejected the write with `NotAllowedError: Write permission denied.`; the allow list accepted both activation paths and the system clipboard held the written text. - `apps/desktop` `node --test tests/*.test.mjs`: 11 passed, 1 skipped (the packaged smoke needs a packaged runtime). - `node --check apps/desktop/scripts/smoke-window.mjs`. - `npm test`: 952 passed. `npm run check:i18n`: 0 problems. Refs: ThinkFlowLab#397
## summary - The installed run failed with only "did not reach the system clipboard", which does not distinguish a denied write from a read that arrived before Windows handed the clipboard over. - Poll the read instead of taking one sample, and include the observed value in the failure, so the next packaged failure names the cause. ## verification - Packaged Windows build (win-unpacked, Electron 45.3.3): the scripted and the click-activated write both reach the system clipboard before the smoke moves on. The run then stops at the trace-window step, which reproduces with the previous deny-all handler as well and is unrelated to renderer permissions.
…ks for Chromium reports a scripted clipboard write as `clipboard-read`, which is the same permission that opens `navigator.clipboard.readText`. Granting it kept the scripted smoke write green and handed the page the ability to read the system clipboard, a capability the shared UI never uses. Grant `clipboard-sanitized-write` only, the name a click-activated copy asks for, and assert the rest of the policy where it runs: a write without user activation and a `readText` are refused with NotAllowedError, a click-activated copy reaches the system clipboard and gives the previous text back, and a fullscreen request settles, enters and exits rather than staying pending. Measured in Electron 45.3.3 on Windows with a deny-all handler, this policy and a grant-all handler: deny-all rejects the click write and leaves `requestFullscreen` pending, which are the two reported failures; grant-all lets the page read back the text a scripted write stored; this policy refuses both scripted calls and keeps the click path working.
7c9f562 to
f7dcd6e
Compare
|
谢谢审阅,两点都取了。已 rebase 到当前 main( 1. 同意这条是问题:Chromium 把「无用户激活的 writeText」报成
第三行就是「授权名称必须按能力而不是按调用看」的证据:全放开时,页面能读回脚本写入留下的文本。记录到的权限流是 安全说明已按实测改写: 2. 冒烟断言与全屏验证。 「保留两种用户激活方式的剪贴板断言」保留了,但对两条的期望值不同:点击激活的写入断言成功并核对系统剪贴板,无激活写入断言 新增 仍然缺的证据,先说清楚:
结论我同意你的判断:这是修对了方向、但安装包级证据还不足的程度。合并前还差发布流水线那两次运行的结果。 |
wangtiance
left a comment
There was a problem hiding this comment.
已复核 f7dcd6e 中对上轮意见的调整。clipboard-read 已从 allow list 移除,点击触发的 clipboard-sanitized-write 保留;新增断言分别检查无激活写入被拒且剪贴板不变、readText 被拒、点击写入成功,以及全屏进入和退出。这个方向解决了上轮提出的读取能力扩大问题;“保留两种激活断言”不要求两种都成功,现在按产品实际需求分别断言允许和拒绝是合适的。
作者提供的三种策略对照探针把开发版 Electron 的结果和安装包证据分开,更新后的说明也不再用 TypeScript 检查替代 .mjs 覆盖。当前 f7dcd6e 的 14 项 GitHub 检查均已成功。
本轮没有在复核的权限模块和新增断言中发现新的阻塞缺陷。安装包层面的 macOS 与 Windows 剪贴板、全屏验证仍以 PR 中列出的待办为准:旧提交的 4/5 冒烟结果不计作本提交验收,源码 CI 全绿也不替代发布作业结果。本轮只做远程静态复核,未运行本地 Electron,未批准或执行合并。
|
@wangtiance — I checked your latest review against the head, and I can close one of the two open items with a real measurement on Windows, plus one small nit. 1. The earlier "merge conflict" note no longer applies. 2.
Recorded permission stream for those calls, every Boundary, stated plainly: this is an Electron probe on the branch's policy module, not a packaged 3. One nit worth taking before merge. In Electron 45 the main-process I am not asking to merge. As far as I can see the remaining gate is the packaged Windows + macOS run, and the code itself needs only the |
|
PASS f7dcd6e
Ran: |
david6666666
left a comment
There was a problem hiding this comment.
REQUEST CHANGES f7dcd6e Refs: none
当前证据暂定 45/100,非批准分:范围 3/3、正确性 2/3(产品权限正确,smoke 有副作用)、验证 2/3、主张证据 0/3、简洁度 0/3。限定应用 origin、仅允许点击触发的写入且继续拒绝读取,这个方向没问题。原 head 的 Desktop、Release、CodeQL、DSH 记录都绿;我回看 Desktop 日志,看到该 head 的单测,没有看到安装包窗口里跑剪贴板和全屏断言。作者的 Windows 真机探针值得保留,但没有发现这类用户可见修复所需的安装包截图。新增解释性代码注释按仓库规则计硬零。
优先解决行内指出的 smoke 副作用:日常在开发机执行时,不应把系统剪贴板上的图片或富文本替换成纯文本。请在安装包验证留下实际复制和全屏的结果,并核对当前 main 上已有的 desktop smoke 与打包工作流改动。这里没有因分支落后要求 rebase。
English: Keep the renderer allowlist narrow; prevent the desktop smoke from overwriting non-text host clipboard content and attach packaged-app evidence.
Dot,代表 @david6666666 作非表决审查;没有批准或合入。
| } finally { | ||
| // Give back the text this run found so a developer smoke does not replace the | ||
| // clipboard of the session that launched it. Non-text formats are not kept. | ||
| clipboard.writeText(previous); |
There was a problem hiding this comment.
这里回写的是测试前的纯文本,不是完整剪贴板。开发者按文档在自己的桌面跑 smoke 时,原来复制的图片、文件或富文本可能被清掉。建议让真实系统剪贴板断言只在隔离 runner 中显式开启,或者先证明能按格式完整恢复,而不是默认只回写文本。
david6666666
left a comment
There was a problem hiding this comment.
REQUEST CHANGES 5db77fd Refs: none
当前证据暂定 37/100,非批准分。 范围 3/3、正确性 1/3、验证 2/3、主张证据 0/3、简洁度 0/3。
应用自身的权限仍是窄白名单;合并 main 后,上轮的非文本剪贴板恢复问题还在。这次额外发现 smoke 断言失败会把开发机剪贴板原文拼进日志,已在线内建议只报告断言结果。Desktop shell check 通过,但没证明当前安装包中的复制和全屏,也没看到实际界面证据。新增解释性源码注释按量表计零。Release Python 尚未完成;我未运行 PR 代码。
Dot,代表 @david6666666 作非表决复审。
| `navigator.clipboard.writeText('opendirector-smoke-denied').then(() => 'granted', error => error.name)`, false); | ||
| if (outcome !== 'NotAllowedError') throw new Error(`A clipboard write without user activation was not denied: ${outcome}`); | ||
| const after = await clipboard.readText(); | ||
| if (after !== before) throw new Error(`A denied clipboard write changed the system clipboard: ${JSON.stringify(before)} became ${JSON.stringify(after)}`); |
There was a problem hiding this comment.
这个异常会把 smoke 启动前剪贴板里的原文写进日志,开发机上可能是刚复制的密钥或私有内容。能否只报告「剪贴板不应变化」?下面的写入断言也一样,保留预期操作和失败类型即可,不需要记录读到的文本。
wangtiance
left a comment
There was a problem hiding this comment.
复核了 5db77fd。Release checks、Desktop checks、CodeQL 和 DSH plugin checks 现已全部通过。桌面检查覆盖了权限单测,Windows 和 macOS 安装包里的剪贴板与全屏验证仍缺结果。
针对上面两条冒烟测试意见,建议把 assertClipboardDenied 和 assertClipboardWrite 一起放在默认关闭的开关下,只在隔离的安装包验证任务中显式开启。这样开发机默认运行 smoke 时完全不访问系统剪贴板,同时仍可执行全屏断言。隔离任务里可以预置测试专用的文本,断言失败时只报告哪一步失败。两处错误消息都应删除实际读到的剪贴板内容。仅给 clipboard.writeText(previous) 补 await 无法保留图片、文件和富文本。
…permissions # Conflicts: # docs/development/desktop.md # docs/development/desktop.zh-CN.md
Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
The packaged smoke forced window focus before its clipboard checks, and with clipboard-sanitized-write granted a focused document's writeText also resolves without transient activation. Both macOS and Windows failed the refusal assertion added with the permission fix. Assert that readText stays refused instead. The permission test name and the architecture, development and lessons text now describe the measured behaviour: the granted name admits the activation-free write in a focused window, so the shell cannot distinguish the two calls. Co-Authored-By: Claude Code <noreply@anthropic.com>
The probe forces and verifies renderer focus, and the scripted write was still refused under the allow list. The packaged smoke admitted an activation-free write after earlier page interactions; focus alone does not explain it. Co-Authored-By: Claude Code <noreply@anthropic.com>
wangtiance
left a comment
There was a problem hiding this comment.
复核了 26b115d。剪贴板测试现在默认关闭,只在 Windows 和 macOS 安装包工作流里开启。两处断言也不再把剪贴板原文写进错误消息。上轮指出的开发机剪贴板覆盖和日志泄露问题已在代码中处理。当前 Release checks 的 Windows、macOS 桌面任务均通过。安装包工作流中的剪贴板断言还没有看到运行结果,需用开启该开关的安装包作业验证。
Release checks 红在独立浏览器测试。canvas_toolbar_topbar.mjs:125 在英文、缩放 0.5 的场景里,拖动节点后等不到工具栏按钮。这个用例通过浏览器运行,不走本 PR 修改的 Electron 权限处理。我已重跑该失败任务,先确认同一提交是否重复失败。如果再次失败,建议先记录鼠标释放后的节点选中状态和工具栏挂载情况,定位交互回归或测试同步问题,再决定改应用还是测试。
david6666666
left a comment
There was a problem hiding this comment.
WITHHOLD 26b115d Refs: none · 非表决 COMMENT
复评 83/100(范围 3、正确性 3、验证 2、主张证据 2、简洁度 3;各满分 3)。上轮两处已修:剪贴板 smoke 默认关闭,失败消息也不再带剪贴板原文。我下载并看了 Windows 前后 4 张截图、对照了原始结果;全屏前后差异清楚。证据绑定旧版 98f82397,权限实现和接线与当前 head 相同,但 smoke 已改,不能当成新版安装包实测。PR 摘要写的「无激活写入必定拒绝」也比当前代码与文档承诺更强,具体已标在代码上。
同 SHA 的 Windows/macOS desktop jobs 通过;Release checks 仍红在 isolated browser 的 toolbar 用例,我核对了日志。没看到这版启用剪贴板断言的 DMG / Windows 安装包结果。我未运行安装包或 PR 代码。建议先收口摘要里的权限承诺,再补两份安装包收据;目前不批准、不合入,不要求仅为追平 main 而 rebase。
Dot,代表 @david6666666 作非表决复审。
| if (process.env.OPENDIRECTOR_DESKTOP_SMOKE_CLIPBOARD === '1') { | ||
| await waitFor(() => window.webContents.executeJavaScript('document.hasFocus()'), 'Renderer did not take document focus before the clipboard check'); | ||
| await assertClipboardReadDenied(window); | ||
| await assertClipboardWrite(window, 'opendirector-smoke-click', true); |
There was a problem hiding this comment.
Suggestion:这里实际覆盖的是「点击写入成功、读取被拒」,没有断言所有无激活写入被拒。开发文档也明确说这不是当前保证。建议把 PR 摘要改成与这里一致;如果「只允许真实用户手势写入」是产品要求,就单独明确这个边界,再为它补安装包回归。
Co-Authored-By: Claude Code <noreply@anthropic.com>
david6666666
left a comment
There was a problem hiding this comment.
WITHHOLD 843df69 Refs: none · 非表决 COMMENT
复评 83/100(范围 3、正确性 3、验证 2、主张证据 2、简洁度 3;各满分 3)。之前失败的 toolbar 用例已通过:当前 head 的 Release checks 全绿,Desktop、CodeQL、DSH 也通过。新 diff 补等原生窗口退出全屏再检查 Host,这比立即关窗并检查更稳;已核验的 Windows 截图还是旧打包版,不能当成这轮安装包 smoke 的结果。
还差启用剪贴板断言的 macOS DMG / Windows 安装包结果。PR 摘要的手势限定也仍比现有测试和开发文档的保证更强,见上轮行内意见。建议按实际保证改摘要、补安装包收据;没有重跑安装包,也没有新的代码行问题。
English recap: Release checks are green on the current head. Still waiting for clipboard-enabled installer receipts and alignment of the PR summary with the tested contract.
Dot,代表 @david6666666 作非表决复审。
Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
david6666666
left a comment
There was a problem hiding this comment.
PASS 9ef7764 Refs: none · 非表决 COMMENT
复评 90/100(范围 3、正确性 3、验证 3、主张证据 2、简洁度 3;各满分 3)。上轮缺的安装包证据已经核到:macOS DMG 和 Windows 安装包 两份日志都显示剪贴板断言已开启,安装后的 smoke 通过;两道 job 检出的合并候选都直接包含当前 head 和 main。Release、Desktop、CodeQL、DSH 均通过。摘要也已改成实际承诺:验证带 renderer activation 的写入和拒绝读取,不承诺拒绝所有无激活写入。
证据扣分只留覆盖限制:Windows 前后截图来自旧打包版,支持相同权限策略;当前安装包证明来自 CI,没把模拟 activation 当作真实复制按钮点击。我没有在本机运行安装包。这是技术结论,不是 GitHub Approve。
English recap: The clipboard-enabled installed smoke passed on macOS and Windows. The in-app copy click path was not independently exercised.
Dot,代表 @david6666666 作非表决复审。
Summary
opendirector://app:clipboard-sanitized-write,fullscreen,automatic-fullscreen. Every other renderer permission stays denied.clipboard-sanitized-writeis the permission name Chromium requests fornavigator.clipboard.writeTextwhen the call carries user activation; the shared UI copies from click handlers, so that is the path to support. The read/write clipboard name (clipboard-read) stays denied: the recorded permission stream shows the activation-free write requests it, and the grant-all probe row shows a page that holds it can read back the text that write stored. The renderer never reads the system clipboard, so that capability has no caller.fullscreenorautomatic-fullscreenleavesrequestFullscreen's promise unsettled, so the media player's fullscreen button does nothing and no.catchruns.details.requestingUrland by the check handler's origin. An origin outsideopendirector://app, including an empty or unparsable one, is a denial rather than a thrownTypeError.readTextmust stay refused withNotAllowedError, and a fullscreen request must settle, enter and exit. The clipboard assertions run whenOPENDIRECTOR_DESKTOP_SMOKE_CLIPBOARD=1, which the macOS DMG and installed Windows smoke steps set, because they mutate the shared system clipboard.clipboard-sanitized-writegranted, both desktop runners resolved that write too; the permission name it requested in that state was not recorded, so the reason is not isolated. A bare probe page with verified renderer focus still requestedclipboard-readand was refused. The assertion was removed rather than making the smoke grant a name the working copy path does not need.6ae9fd32while the Host was still serving.docs/development/lessons.mdanddocs/development/validation.mdedited in the language each file is written in (lessons is English-only, validation is Chinese-only).Linked issue
Labels
type:bug,area:desktopTest plan
9ef77644:node --test apps/desktop/tests/*.test.mjs— 17 pass, 1 skipped (the skip needs the packaged runtime), 0 fail. The policy test pins the granted names, the denied clipboard read, and the origins that must stay denied, includingopendirector://appwithout a path as the check handler serializes it.9ef77644:node --checkonapps/desktop/src/main.mjs,apps/desktop/src/permissions.mjs,apps/desktop/tests/permissions.test.mjsandapps/desktop/scripts/smoke-window.mjs— all parse.check-i18n.mjs— 3857 keys, 0 problems.check-browser-manifest.mjs— 111 entries OK.check-browser-locale.mjs— 101 pages, 0 problems, 112 scripts.728b4077, a main commit carrying the deny-all handler. Its deny-all line and.github/workflows/desktop-installers.ymlare identical to the review base42c5dc39; six other files underapps/desktop/differ because of later mainline runtime-environment and smoke work, so this body does not claim the before build is byte-identical to the base. Built withprepare:runtime+pack.98f82397, built the same way from the same source tree.apps/desktop/src/permissions.mjsis byte-identical at98f82397,7c977655, and the reviewed head9ef77644, so this measurement exercises the policy under review.main.mjsgained mainline's host environment resolution in the later merge onto42c5dc39, andsmoke-window.mjswas changed by the clipboard correction and the close polling after the evidence build; the revised smoke assertions therefore ran only in CI, not in this local package.before-result.json/after-result.jsonbelow.opendirector://app/origin, the probe imports the exactpermissions.mjsfrom this head, and the handler wiring matchesmain.mjs. The same Electron build was measured under three policies, one process each. The probe script, its dependency closure and each run's full output are published: probe.mjs, app/src/permissions.mjs — the path the probe's import names — app/src/host.mjs — a verbatim copy ofapps/desktop/src/host.mjsat head9ef77644, whichpermissions.mjsimports — package.json declaringzod4.4.3 andelectron45.3.3, permissions.mjs, probe-deny.json, probe-shell.json, probe-grant.json. Verified at these URLs: a fresh download into an empty directory,npm install --ignore-scripts, thenawait import('./app/src/permissions.mjs')resolves and the policy evaluates (clipboard-sanitized-writeonopendirector://app/granted;clipboard-readand a foreign origin denied). The publishedpermissions.mjsandhost.mjsare byte-identical toapps/desktop/src/at head9ef77644. The window runs that produced the JSONs were performed on Windows with the same Electron 45.3.3 and the same files under the same relative layout.readTextrequestFullscreenNotAllowedErrorNotAllowedErrorNotAllowedError(the reported bug)fullscreenElementnone (the reported bug)NotAllowedError, clipboard unchangedNotAllowedErrorprobe-clickedprobe-scriptedprobe-scripted98f82397runs its checks after earlier page interactions and observed the activation-free write admitted under the same policy; the permission name it requested in that state was not recorded, and the table is not a claim that the refusal holds in every page state.clipboard-read(write without activation),clipboard-read(readText),clipboard-sanitized-write(write with activation),automatic-fullscreen(check),fullscreen(request); every requesting URL wasopendirector://app/.9ef77644(run 47447832750): all 18 check runs completed, 0 failed, includingchecks / desktop / macosandchecks / desktop / windows, which run the clipboard and fullscreen assertions on the installed applications.98f82397failed both desktop lanes on the activation-free clipboard write assertion;6ae9fd32(merge of current main) passed the Windows lane and failed macOS on the one-shot close check, against a Host that was still serving.42c5dc3926026384c13f7a6cc633792df44d079d/ head9ef776446848ae37ac6d8812bfa0c3d5db70f6bb:opendirector-review, candidate mode): 90/100, verdict PASS (scope 3/3, correctness 3/3, validation 3/3, claim evidence 2/3, simplicity 3/3). No code defect found. Validation covers the unit test,node --check, the four check scripts, and all 18 Release check runs on this head, including the installed desktop smoke that exercises the clipboard and fullscreen assertions. The claim-evidence deduction is bounded: the packaged measurement issues the samewriteTextcall with Chromium's gesture flag instead of clicking a copy control, and macOS is covered by the installed CI smoke without a retained artifact beyond the check log.7c977655as the reviewed head; the reviewed head is9ef77644, and the policy files are byte-identical at98f82397,7c977655, and9ef77644; (low, recorded below) neither the packaged measurement nor the installed smoke clicks a real copy control, and the canvasexecCommandcopy path is not measured, while the desktop pages' copy wording does not call out that path.98f82397, not9ef77644;apps/desktop/src/permissions.mjsandapps/desktop/src/host.mjsare byte-identical between them, and the CI desktop lanes at9ef77644ran the revised smoke. macOS clipboard and window-server behaviour is measured only by the green installed smoke, with no retained artifact beyond the check log..mjsis outside the TypeScript check, sotsc --noEmitsays nothing about these files. The copy-control click and the canvasexecCommand("copy")path are not exercised by the smoke or the packaged measurement; the renderer permission policy itself is unit-tested, and the installed desktop lanes are green.Evidence that it works
728b4077, after98f82397. The reviewed head9ef77644adds the candidate's smoke-script, close-assertion and documentation commits plus mainline merges on top;apps/desktop/src/permissions.mjsandapps/desktop/src/host.mjsare byte-identical at98f82397,9ef77644.Both packages are launched from
win-unpacked\OpenDirector.exewith the same CDP driver. The driver imports the video through the Welcome canvas flow, waits for the player, then measures the clipboard and the fullscreen control from the page. The clipboard write is issued with Chromium's user-gesture flag (Runtime.evaluatewithuserGesture=true), the activation a click supplies; the fullscreen entry is a real mouse click on the player control. Screenshots are captured immediately before the fullscreen click and 4 s after it.Before (
728b4077): the canvas is visible and the player's fullscreen button is present; after clicking it, the screenshot is still the canvas. The promise never settled (settlement: none) anddocument.fullscreenElementstayednull. The write with renderer user activation threwNotAllowedErrorand the clipboard sentinel was unchanged.{ "name": "clipboard", "ok": false, "scripted": "NotAllowedError", "afterScripted": "od-clipboard-sentinel-before", "clicked": "NotAllowedError", "afterClicked": "od-clipboard-sentinel-before" } { "name": "fullscreen", "ok": false, "fullscreen": false, "settlement": "none" }After (
98f82397): clicking fullscreen fills the window with the video and the promise settles; the driver recordsdocument.fullscreenElementas truthy (the JSON stores the boolean asfullscreen: true) and the screenshot shows the player filling the window. The write with renderer user activation is granted and the system clipboard reads backod-click-write-after. In this driver run the activation-free write was still refused and left the clipboard sentinel in place; the installed smoke, which runs after earlier page interactions, observed that write admitted under the same policy, and the test plan states that limitation rather than generalizing from this row.{ "name": "clipboard", "ok": true, "scripted": "NotAllowedError", "afterScripted": "od-clipboard-sentinel-after", "clicked": "granted", "afterClicked": "od-click-write-after" } { "name": "fullscreen", "ok": true, "fullscreen": true, "settlement": "settled" }Full result records: before-result.json and after-result.json.
Boundaries this change does not cross.
.mjsis outside the TypeScript check, so a cleantsc --noEmitsays nothing aboutpermissions.mjs,main.mjsor the smoke script, and this PR does not claim it as coverage. The driver does not click a copy control; it issues the samewriteTextcall with Chromium's gesture flag, and the installed smoke does the same, so the shared UI's click handler leads to that call but is not itself exercised. The permission names and the activation split come from Chromium's permission code, which is shared by platform, but macOS system clipboard and window-server behaviour is covered only by the green installed smoke in CI; this PR does not claim a separate macOS measurement.Provider verification
Bilingual UI
lessons.mdandvalidation.mdare updated in the language each file is written in (English-only and Chinese-only respectively).🤖 Generated with Claude Code